def get_anmino_acid():
    anmino=['W','C','I', 'F', 'R', 'M', 'N', 'S', 'P', 'T', 'V', 'E', 'L', 'G', 'Y', 'K', 'Q', 'A', 'H', 'D']
    features={}
    for an in anmino:
        features[an]=0
    return anmino,features

def get_features():
    codon = []
    nucleotide = ['A', 'T', 'C', 'G']
    for codon0 in nucleotide:
        for codon1 in nucleotide:
            for codon2 in nucleotide:
                codon.append(codon0 + codon1 + codon2)
    features = {}
    for cod in codon:
        features[cod] = 0
    return codon,features



# import xlwt
# def writeExcelFile(filename,content,content1=[]):
#     workbook = xlwt.Workbook(encoding='utf-8')
#     booksheet = workbook.add_sheet('Sheet 1', cell_overwrite_ok=True)
#     row=0
#     for lines in content:
#         row += 1
#         for col in range(len(lines)):
#             booksheet.write(row, col, lines[col])
#     if not content1==[]:
#         booksheet = workbook.add_sheet('Sheet 2', cell_overwrite_ok=True)
#         row = 0
#         for lines in content1:
#             row += 1
#             for col in range(len(lines)):
#                 booksheet.write(row, col, lines[col])
#     workbook.save(filename)
